﻿using System.Collections.Generic;

namespace User.Api.Dto.Dinner
{
    public class GetFoodListResponse : BaseResponse
    {
        /// <summary>
        /// 是否可点餐
        /// </summary>
        public bool CanDinner { get; set; }

        /// <summary>
        /// 病区名称
        /// </summary>
        public string Ward { get; set; }

        /// <summary>
        /// 床号
        /// </summary>
        public string Bed { get; set; }

        public List<FoodCategory> Categories { get; set; }

        public class FoodCategory
        {
            /// <summary>
            /// 菜单日期： 2016-05-21
            /// </summary>
            public string Date { get; set; }

            /// <summary>
            /// 显示日期 ： 05-21(今天)
            /// </summary>
            public string Day { get; set; }

            /// <summary>
            /// 餐牌Id
            /// </summary>
            public int FpId { get; set; }

            /// <summary>
            /// 餐牌名称
            /// </summary>
            public string FpName { get; set; }

            /// <summary>
            /// 餐点Id
            /// </summary>
            public int HmtId { get; set; }

            /// <summary>
            /// 餐点名称
            /// </summary>
            public string HmtName { get; set; }

            /// <summary>
            /// 菜品列表
            /// </summary>
            public List<FoodItem> Items { get; set; }
        }

        public class FoodItem
        {
            /// <summary>
            /// 菜品Id
            /// </summary>
            public int FoodId { get; set; }

            /// <summary>
            /// 菜品名称
            /// </summary>
            public string FoodName { get; set; }

            /// <summary>
            /// 单价
            /// </summary>
            public decimal Price { get; set; }

            /// <summary>
            /// 已点数量
            /// </summary>
            public int SelectedCnt { get; set; }
        }
    }
}